package unit6;

import java.util.Arrays;
import java.util.Date;
public class EmployeeSortTest {
	public static void main(String[] args) {
		Employee[] staff=new Employee[3];
		staff[0]=new Employee("Harry",35000,new Date());
		staff[1]=new Employee("Mike",45000,new Date());
		staff[2]=new Employee("Alice",55000,new Date());
		
		Arrays.sort(staff);
		
		for(Employee e:staff)
			System.out.println(e);
	}
}
